package com.koron.housing.staff.bean.po;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.koron.bean.annocation.FillField;
import com.koron.bean.base.BaseBean;
import com.koron.housing.excel.HousingStaffConvertor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 租户信息(HousingStaff)表实体类
 *
 * @author jzp
 * @since 2022-02-26
 */
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "租户信息", description = "HousingStaff")
public class HousingStaff extends BaseBean {

    /**
     * 租户账号
     */
    @ApiModelProperty("租户账号")
    private String account;

    /**
     * 租户姓名
     */
    @ExcelProperty(value = "租户姓名", index = 2)
    @ApiModelProperty("租户姓名")
    private String name;

    /**
     * 部门id
     */
    @FillField
    @ApiModelProperty("部门id")
    private String deptId;

    /**
     * 部门名称
     */
    @FillField
    @ExcelProperty(value = "所在部门", index = 4)
    @ApiModelProperty("部门名称")
    private String deptName;

    /**
     * 性别，0女1男
     */
    @ApiModelProperty("性别，0女1男")
    private Integer sex;

    /**
     * 身份证号
     */
    @ApiModelProperty("身份证号")
    private String idCard;

    /**
     * 婚姻状况，housing_staff_marital
     */
    @ApiModelProperty("婚姻状况，housing_staff_marital")
    private String marital;

    /**
     * 子女个数
     */
    @ApiModelProperty("子女个数")
    private Integer childrenNum;

    /**
     * 联系电话
     */
    @ApiModelProperty("联系电话")
    private String phone;

    /**
     * 全日制学历，housing_staff_edu
     */
    @ApiModelProperty("全日制学历，housing_staff_edu")
    private String fullTimeEdu;

    /**
     * 毕业院校
     */
    @ApiModelProperty("毕业院校")
    private String graduatedFrom;

    /**
     * 家庭已购住房所在地
     */
    @ApiModelProperty("家庭已购住房所在地")
    private String purchasedLocation;

    /**
     * 家庭常住地
     */
    @ApiModelProperty("家庭常住地")
    private String homeLocation;

    /**
     * 工作常驻地
     */
    @ApiModelProperty("工作常驻地")
    private String workLocation;

    /**
     * 双职工
     */
    @ApiModelProperty("双职工")
    private Integer doubleWorker;

    /**
     * 职级
     */
    @ApiModelProperty("职级")
    private String rank;

    /**
     * 入职日期
     */
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "入职时间", index = 3)
    @ApiModelProperty("入职日期")
    private Date entryDate;

    /**
     * 申请住房类型，housing_a_usage_type
     */
    @ExcelProperty(value = "住房类型",index = 1, converter = HousingStaffConvertor.class)
    @ApiModelProperty("申请住房类型，housing_a_usage_type")
    private String usageType;

    /**
     * 意向户型，housing_layout
     */
    @ExcelProperty(value = "户型", index = 5, converter = HousingStaffConvertor.class)
    @ApiModelProperty("意向户型，housing_layout")
    private String layout;

    /**
     * 拟入住人数
     */
    @ApiModelProperty("拟入住人数")
    private Integer intoNum;

    /**
     * 状态，housing_lease_status
     */
    @ExcelProperty(value = "租户状态", index = 0, converter = HousingStaffConvertor.class)
    @ApiModelProperty("状态，housing_lease_status")
    private String status;

}

